package com.tarim.streetdance.mapper;

import com.tarim.streetdance.model.CommentSecond;
import com.tarim.streetdance.model.CommentStair;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.util.List;

@Mapper
@Component("CommentSecondMapper")
public interface CommentSecondMapper {
    List<CommentSecond> selectByPid(CommentSecond record);

    int deleteByPrimaryKey(Long id);

    int insert(CommentSecond record);

    //新增
    int insertSelective(CommentSecond record);

    CommentSecond selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(CommentSecond record);

    int updateByPrimaryKey(CommentSecond record);

    //删除
    int updateForDelete(CommentSecond commentSecond);

    int updateForDeleteSecond(CommentStair commentStair);
}